Solving Mahjong Solitaire boards with peeking

نویسنده

  • Michiel de Bondt
چکیده

We first prove that solving Mahjong Solitaire boards with peeking is NPcomplete, even if one only allows isolated stacks of the forms aab and abb. We subsequently show that layouts of isolated stacks of heights one and two can always be solved with peeking, and that doing so is in P, as well as finding an optimal algorithm for such layouts without peeking. Next, we describe a practical algorithm for solving Mahjong Solitaire boards with peeking, which is simple and fast. The algorithm uses an effective pruning criterion and a heuristic to find and prioritize critical groups. The ideas of the algorithm can also be applied to solving ShisenSho with peeking. Mahjong Solitaire is a game which is played with the 144 tiles of the Chinese game Mahjong. The tiles are distributed in 36 groups of four tiles each. In the beginning of the game, the tiles are stacked randomly in a predefined pattern, called the layout. The so-called turtle layout is used the most and therefore called the default layout as well. After stacking the tiles, the object is to remove all tiles under certain rules. These rules are as follows. • A tile is playable, if and only if no other tile is lying upon it, not even partially, and either its left side or its right side does not touch any other tile. • Only playable tiles may be played, but solely in pairs of tiles of the same group. Thus removing all tiles takes 72 removals of pairs of similar tiles. During game play, one cannot see tiles which are completely below other tiles. Sometimes a tile can be seen partially, namely where it is not covered by an other tile.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Solitaire: Recent Developments

This special issue on Peg Solitaire has been put together by John Beasley as guest editor, and reports work by John Harris, Alain Maye, Jean-Charles Meyrignac, George Bell, and others. Topics include: short solutions on the 6× 6 board and the 37-hole “French” board, solving generalized cross boards and long-arm boards. Five new problems are given for readers to solve, with solutions provided.

متن کامل

Solitaire Army and Related Games

In this paper I present some variations of the Solitaire Army game. This game is part of a broader category of one person games: Peg Solitaire games. While Central Solitaire is a relatively well-known and studied game, which is played on a cross-shaped board, little research has been done on Solitaire Army game and its variants. The purpose of this paper is to present Solitaire Army game, its v...

متن کامل

Solving Triangular Peg Solitaire

We consider the one-person game of peg solitaire on a triangular board of arbitrary size. The basic game begins from a full board with one peg missing and finishes with one peg at a specified board location. We develop necessary and sufficient conditions for this game to be solvable. For all solvable problems, we give an explicit solution algorithm. On the 15-hole board, we compare three simple...

متن کامل

Acyclic Constraint Logic and Games

Non-deterministic Constraint Logic is a family of graph games introduced by Demaine and Hearn that facilitates the construction of complexity proofs. It is convenient for the analysis of games, providing a uniform view. We focus on the acyclic version, apply this to Klondike, Mahjong Solitaire and Nonogram (that requires planarity), and discuss the more complicated game of Dou Shou Qi. While fo...

متن کامل

On the solitaire cone and its relationship to multi-commodity flows

The classical game of Peg Solitaire has uncertain origins, but was certainly popular by the time of LOUIS XIV, and was described by LEIBNIZ in 1710. The modern mathematical study of the game dates to the 1960s, when the solitaire cone was first described by BOARDMAN and CONWAY. Valid inequalities over this cone, known as pagoda functions, were used to show the infeasibility of various peg games...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1203.6559  شماره 

صفحات  -

تاریخ انتشار 2012